<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <include file="./Template/Common/head-static.html"/>
    <css file="__CSS__/admin.css"/>
    <title>{$_web['title']}</title>
</head>
<body>
<div class="layui-border-box">
    <!-- 头部 -->
    <div class="header-nav">
        <div class="logo pl10 font15">
            <a _href="{:U('home')}" id="homeTack" icy8-click-event="addWindow">
                <span class="layui-icon layui-icon-component font15"></span>
            </a>
        </div>
        <div class="shrink point" icy8-click-event="shrinkLeftNav">
            <span class="fa fa-list-ul shrink-icon"></span>
        </div>
        <ul class="layui-nav icy8 top-menu fl" lay-filter="icy8-channel">
            <volist name="_web.channel" id="vo">
                <li class="layui-nav-item <if condition='url_compare($vo["name"], MODULE_NAME."/".CONTROLLER_NAME."/".ACTION_NAME)'>layui-this</if>">
                    <a href="{$vo.url}">
                        <i class="{$vo.icon}"></i> {$vo.title}
                    </a>
                    <if condition="$vo['_child']">
                        <dl class="layui-nav-child"> <!-- 目前只支持二级菜单 -->
                            <volist name="vo._child" id="vo">
                                <dd>
                                    <a href="{$vo.url}">
                                        <i class="{$vo.icon}"></i> {$vo.title}
                                    </a>
                                </dd>
                            </volist>
                        </dl>
                    </if>
                </li>
            </volist>
        </ul>
        <ul class="layui-nav icy8 fr">
            <li class="layui-nav-item site-msg">
                <a>
                    <span class="layui-icon layui-icon-notice"></span><span class="layui-badge-dot"></span>
                </a>
            </li>
            <li class="layui-nav-item">
                <a class="point">
                    <span class="layui-icon layui-icon-username pl3 pr3"></span>{$_me.username}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">编辑资料</a></dd>
                    <dd><a href="{:U('User/Login/index')}">切换账号</a></dd>
                    <dd><a href="{:U('User/Login/logout')}" ajaxGet>注销</a></dd>
                </dl>
            </li>
        </ul>
    </div>
    <!-- 左侧导航 -->
    <div class="left-nav">
        <ul class="layui-nav layui-nav-tree" lay-filter="icy8-left-nav">
            <volist name="_web.menu" id="vo">
                <if condition="$vo['_child']">
                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            <i class="{$vo.icon}"></i> {$vo.title}
                        </a>
                        <include file="./Template/Common/sub-menu.html"/>
                    </li>
                <else/>
                    <li class="layui-nav-item">
                        <a _href="{$vo.url}" icy8-click-event="addWindow">
                            <i class="{$vo.icon}"></i> {$vo.title}
                        </a>
                    </li>
                </if>
            </volist>
        </ul>
    </div>
    <div class="page-content">
        <div class="tab-list">
            <div class="layui-icon icy8-tabs-control layui-icon-prev" icy8-click-event="leftTab"></div>
            <div class="layui-icon icy8-tabs-control layui-icon-next" icy8-click-event="rightTab"></div>
            <div class="layui-icon icy8-tabs-control layui-icon-down">
                <ul class="layui-nav icy8-tabs-select" lay-filter="icy8-tabs-select">
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:;">
                        </a>
                        <dl class="layui-nav-child layui-anim-fadein">
                            <dd icy8-click-event="refreshWindow">
                                <a href="javascript:;">刷新当前标签页</a>
                            </dd>
                            <dd icy8-click-event="closeThisTabs">
                                <a href="javascript:;">关闭当前标签页</a>
                            </dd>
                            <dd icy8-click-event="closeOtherTabs">
                                <a href="javascript:;">关闭其它标签页</a>
                            </dd>
                            <dd icy8-click-event="closeAllTabs">
                                <a href="javascript:;">关闭全部标签页</a>
                            </dd>
                        </dl>
                    </li>
                </ul>
            </div>
            <div class="layui-tab" lay-unauto lay-allowclose="true" lay-filter="icy8-layout-tabs">
                <ul class="layui-tab-title">
                    <li lay-id="{:U('home')}" class="layui-this">
                        <i class="layui-icon layui-icon-home"></i>
                    </li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <iframe tab-id="{:U('home')}" frameborder="0" src="{:U('home')}" scrolling="yes"
                                class="icy8Iframe"></iframe>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<block name="body"></block>
<script type="text/javascript">
    layui.config({
        base: '__JS__/'
        , version: '101100'
    }).use('admin', function () {
        layui.common.listenSimpleEvent(); // 监听简单事件
    });
</script>
</body>
</html>